<?php

namespace Database\Factories;

use App\Models\Voucher;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\Factory;

class VoucherFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Voucher::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'uuid' => $this->faker->uuid,
            'user_id' => 1,
            'overtime' => Carbon::parse('+6 months')->toDateTimeString(),
            'description' => '商户联盟间代金券可消费，也可兑换现金'
        ];
    }
}
